import Vue from 'vue'
import VueRouter from 'vue-router'

import Liu from '@/router/liu/liuindex.js'
import Miao from '@/router/miao/miaoindex.js'
import Wang from '@/router/wang/wangindex.js'
import Yue from '@/router/yue/yueindex.js'
import Zhang from '@/router/zhang/zhangindex.js'

Vue.use(VueRouter)

const routes = [
 
  {
    path: '/shouye',
    name: 'Shouye',
    component: () => import('@/views/yue/shouye.vue')
  },
  {
    path: '/fenlei',
    name: 'Fenlei',
    component: () => import('@/views/miao/fenlei.vue')
  },
  {
    path: '/quanyi',
    name: 'Quanyi',
    component: () => import('@/views/zhang/quanyi.vue')
  },
  {
    path: '/shangcheng',
    name: 'Shangcheng',
    component: () => import('@/views/liu/shangcheng.vue')
  },
  {
    path: '/wode',
    name: 'Wode',
    component: () => import('@/views/wang/wode.vue')
  },
  {
    path:"/",
    redirect:"/shouye"
  },
  ...Liu,
  ...Miao,
  ...Wang,
  ...Yue,
  ...Zhang
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
